﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user_detail.aspx.cs" Inherits="E1_eMart.user_detail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <title>User Details</title>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <form id="form1" runat="server">
<div id="container">
<div id="header">
    <div id="logo">
        <a href="index.aspx"><img src="images/logo.png" alt="Our Logo" width="153"/></a>
    </div>
    <ul id="nav">
        <%
        if (Session["username"] == null)
    {
    %>    
        <li><a href="register.aspx">Register</a></li>
        <li><a href="Login.aspx">Sign in</a></li>  
    <%}
    else
    {%>
    <li>Hello, 
    <%if (loaiTaiKhoan == 1)
      { %>
        <a href="user/Account_Management.aspx">
            <% =gTaiKhoan.TenTaiKhoan%> 
        </a>
        <%}
      else
      { %>
      <a href="">
            <% =gTaiKhoan.TenTaiKhoan%> 
        </a>
        <%} %>
    </li>
    <li>
        <asp:LinkButton ID="lbLogOut" runat="server" 
            onclientclick="if(!confirm('Bạn có muốn thoát không?'))return false" 
            PostBackUrl="~/Logout.aspx">Logout</asp:LinkButton>       
    <%}%>     
    </ul>
    <div id="user_box">
      <%if (loaiTaiKhoan == 2 || loaiTaiKhoan == 3)
          {
               %><a href="admin/dashboard.aspx">Admin CP</a><%}
          %>

          <%if(loaiTaiKhoan == 1)
            { %>
          <a href="user/Account_Management.aspx">My Products</a><%
          } %>
          <%
              if (Session["username"] == null)
              {
           %>  
        <a href="Login.aspx">Sell</a>
        <%}
              else
              {
                  if (loaiTaiKhoan == 1)
                  {
                  %>
              <a href="submit_product.aspx">Sell</a>
              <%}
              }%> <a href="">Help</a>
    </div>
 
    <div class="clear"></div>
</div>

<div id="main_body" class="user">
    <div id="user_avatar">
        <p>&nbsp;<asp:Image ID="Image1" runat="server" 
                ImageUrl="~/images/avatar/user1.jpg" />
        </p>
        <table>
        	<tr>
            	<th class="user_detail">Member Since:</th>
                <td><span class="user_detail">25-jun, 2010</span></td>
            </tr>
            <tr>
            	<th class="user_detail">Location:</th>
                <td><span class="user_detail"><%=tttkNguoiDang.DiaChi %></span></td>
            </tr>          
        </table>
        <table>
            <tr>
            	<th class="user_detail"><a href="#">Show all products</a><br/></th>
                <td> </td>
            </tr>
            <tr>
            	<th class="user_detail"><a href="#">Report this user</a><br/></th>
                <td> </td>
            </tr>
        </table>
        
        
    </div>
    <div id="user_summary">
                <h3>About User</h3>
        <table>                
            <tr>
                <th class="item_info">Username:</th>
                <td><%=taikhoanNguoiDang.TenTaiKhoan %></td>
            </tr>
            <tr>
                <th class="item_info">Type:</th>
                <td><%=loaiTaiKhoanNguoiDang.TenLoaiTaiKhoan %></td>
            </tr>
             <tr>
                <th class="item_info">Gender:</th>
                <td><%=tttkNguoiDang.GioiTinh %></td>
            </tr>
            <tr>
                <th class="item_info">Email:</th>
                <td><span class=""><%=tttkNguoiDang.Email %></span></td>
            </tr>
             <tr>
                <th class="item_info">Phone:</th>
                <td><%=tttkNguoiDang.SoDienThoai %></td>
            </tr>  
             <tr>
                <th class="item_info">Score of sale:</th>
                <td><%=taikhoanNguoiDang.DiemTinCayBan %></td>
            </tr>    
             <tr>
                <th class="item_info">Score of buying:</th>
                <td><%=taikhoanNguoiDang.DiemTinCayMua %></td>
            </tr>         
        </table>
    </div>   
</div>

<div id="footer" style="margin-top: 300px;">
    <hr>
    <h4>Copyright &copy; 2011 eMart Inc. All rights reserved.2011 eMart Inc. All rights reserved.</h4>
    <div id="about">
        <a href="about.html"><h3>About</h3></a>
        <a href="about.html"><h3>Contact Us</h3></a>
    </div>
</div>
<div class="clear"></div>
</div>
    </form>
</body>
</html>
